<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>学生列表</title>
    <link rel="stylesheet" href="/webjars/bootstrap/3.4.1/css/bootstrap.min.css">
    <script src="/webjars/jquery/3.6.0/jquery.min.js"></script>
    <script src="/webjars/bootstrap/3.4.1/js/bootstrap.min.js"></script>
    <style>
        .table{
            text-align: center;
        }
        .container{
            margin-top: 20px;
        }
    </style>
</head>
<body>
<div class="container">
    <div class="panel panel-primary">
        <div class="panel-heading">
            <h3 class="panel-title">
                <h3>学生列表</h3>
            </h3>
        </div>
        <table class="table table-hover table-striped">
            <tr>
                <td>学号</td>
                <td>姓名</td>
                <td>性别</td>
                <td>年龄</td>
                <td>住址</td>
                <td>所在班级</td>
                <td>操作</td>
            </tr>

            <tr th:each="stud : ${student}">
                <td th:text="${stud.sid}"></td>
                <td th:text="${stud.sname}"></td>
                <td th:text="${stud.sex}"></td>
                <td th:text="${stud.age}"></td>
                <td th:text="${stud.addr}"></td>
                <td th:text="${stud.cname}"></td>
                <td>
                    <a href="#" class="btn btn-success btn-sm">修改</a>
                    <a href="#" class="btn btn-danger btn-sm">删除</a>
                </td>
            </tr>
        </table>
        <div class="panel-footer text-right">
            我深怕自己本非美玉，故而不敢加以刻苦琢磨，却又半信自己是块美玉，却又不肯庸庸碌碌，与瓦砾为伍。
        </div>
    </div>
</div>
</body>
</html>